﻿using Cl.Entity.DataBaseEntity.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cl.Model.DataBaseEntityDtos.User.Departments
{
    public class DepartmentOutDto
    {
        public DepartmentOutDto()
        {

        }
        public DepartmentOutDto(Department department)
        {
            Id = department.Id;
            Name = department.Name;
            ParentId = department.ParentId;
            Code = department.Code;
            Value = department.Value;
            Sort = department.Sort;
            Description = department.Description;
        }

        public int Id { get; set; }

        /// <summary>
        /// 父级
        /// </summary>
        public int? ParentId { get; set; }

        /// <summary>
        /// 名称
        /// </summary>

        public string Name { get; set; }

        /// <summary>
        /// 编码
        /// </summary>

        public string Code { get; set; }

        /// <summary>
        /// 值
        /// </summary>

        public string Value { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        public string Description { get; set; }
    }
}
